{% extends "base.html" %}
{% block title %}判断文章类型{% endblock %}
{% block content %}
<div class="row">
{%if result%}
    <div class="row">
        <div class="col-md-4 list-group">
          <a href="#" class="list-group-item active">
            好评
          </a>
            {% for item in result.sentiments.2 %}
                <a href="#" class="list-group-item">{{item}}</a>
            {% endfor %}
        </div>
        <div class="col-md-4 list-group">
          <a href="#" class="list-group-item active">
            中评
          </a>
            {% for item in result.sentiments.1 %}
                <a href="#" class="list-group-item">{{item}}</a>
            {% endfor %}
        </div>
        <div class="col-md-4 list-group">
          <a href="#" class="list-group-item active">
            差评
          </a>
            {% for item in result.sentiments.0 %}
                <a href="#" class="list-group-item">{{item}}</a>
            {% endfor %}
        </div>
    </div>
{%endif%}
    <form method="post" action="/comment_analyse" role="form" class="form">

        <div class="form-group">
            <label for="content" class="col-md-2 control-label">类别</label>
            <div class="col-md-10">
                <input class="form-control" id="type_name" name="type_name"  type="text" value="{{type_name}}"/>
            </div>
        </div>


        <div class="form-group">
            <label for="content" class="col-md-2 control-label">评论</label>
            <div class="col-md-10">
                <textarea class="form-control" id="text" name="text" cols="8" rows="15">{{text}}</textarea>
            </div>
        </div>

        <div class="form-group">
            <label for="content" class="col-md-2 control-label"></label>
            <div class="col-md-4">
                <input type="submit" class="btn btn-primary" />
            </div>
        </div>

    </form>
</div>
{% endblock%}
